import request from '@/utils/api/request'

//查询最新课程
export function mostNew( data ){
	return request({
		url:'/api/course/mostNew',
		method:'post',
		data
	})
}
/**
 * 
 * @returns 一级分类
 */
export function getFirstCategorys( ){
	return request({
		url:'/api/course/category/getFirstCategorys',
		method:'get',
	})
}
/**
 * 
 * @returns 二级分类
 */
export function getSecondCategorys(params) {
	return request({
		url: 'api/course/category/getSecondCategorys',
		method: 'get',
		params
	})
}
/**
 * 
 * @returns 查询课程  
 */
export function courseSearch(data) {
	return request({
		url: 'api/course/search',
		method: 'post',
		data
	})
}


export function getDatail(params)
{
	return request({
		url:'/api/course/getDetail',
		method:'get',
		params
	})
}